<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
  <head>
	<!--[if lt IE 9]>
	<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
	<![endif]-->
    <title>MediaTypes - Pws.Clients.RestLibrary Documentation</title>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"/>
    <link type="text/css" rel="stylesheet" href="../main.css"/>
    <script type="text/javascript" src="../js/jquery-1.3.2.min.js"></script>
    <script type="text/javascript" src="../js/jquery.scrollTo-min.js"></script>
    <script type="text/javascript" src="../js/navigation.js"></script>
    <script type="text/javascript" src="../js/example.js"></script>
  </head>
  <body>
  	<header><h1>Pws.Clients.RestLibrary : API Documentation</h1>
	</header>
<nav id="namespaces">
	<h2 class="fixed">Namespaces</h2>
	<div class="scroll">
		<ul>
			<li>
          <a href="../Pws.Clients.RestLibrary/index.htm" class="current">Pws.Clients.RestLibrary</a>
      </li>
			<li>
          <a href="../Pws.Clients.RestLibrary.Aftersales/index.htm">Pws.Clients.RestLibrary.Aftersales</a>
      </li>
			<li>
          <a href="../Pws.Clients.RestLibrary.Customers/index.htm">Pws.Clients.RestLibrary.Customers</a>
      </li>
			<li>
          <a href="../Pws.Clients.RestLibrary.Customers.Contacts/index.htm">Pws.Clients.RestLibrary.Customers.Contacts</a>
      </li>
			<li>
          <a href="../Pws.Clients.RestLibrary.Customers.Orders/index.htm">Pws.Clients.RestLibrary.Customers.Orders</a>
      </li>
			<li>
          <a href="../Pws.Clients.RestLibrary.Customers.Products/index.htm">Pws.Clients.RestLibrary.Customers.Products</a>
      </li>
			<li>
          <a href="../Pws.Clients.RestLibrary.ECommerce.Permissions/index.htm">Pws.Clients.RestLibrary.ECommerce.Permissions</a>
      </li>
			<li>
          <a href="../Pws.Clients.RestLibrary.ECommerce.Users/index.htm">Pws.Clients.RestLibrary.ECommerce.Users</a>
      </li>
			<li>
          <a href="../Pws.Clients.RestLibrary.Framework/index.htm">Pws.Clients.RestLibrary.Framework</a>
      </li>
			<li>
          <a href="../Pws.Clients.RestLibrary.Products/index.htm">Pws.Clients.RestLibrary.Products</a>
      </li>
			<li>
          <a href="../Pws.Clients.RestLibrary.Products.Navigation/index.htm">Pws.Clients.RestLibrary.Products.Navigation</a>
      </li>
			<li>
          <a href="../Pws.Clients.RestLibrary.Shared/index.htm">Pws.Clients.RestLibrary.Shared</a>
      </li>
			<li>
          <a href="../Pws.Clients.RestLibrary.Suppliers/index.htm">Pws.Clients.RestLibrary.Suppliers</a>
      </li>
			<li>
          <a href="../Pws.Clients.RestLibrary.WorksurfaceEstimator/index.htm">Pws.Clients.RestLibrary.WorksurfaceEstimator</a>
      </li>
			<li>
          <a href="../Pws.Clients.RestLibrary.WorksurfaceJobs/index.htm">Pws.Clients.RestLibrary.WorksurfaceJobs</a>
      </li>
		</ul>
	</div>
</nav><nav id="types">
  <h2 class="fixed">Types in Pws.Clients.RestLibrary</h2>
	<div class="scroll">
		<ul>
				<li>
            <a href="../Pws.Clients.RestLibrary/Fault_V1.htm">Fault_V1</a>
        </li>
				<li>
            <a href="../Pws.Clients.RestLibrary/IPwsObject_V1.htm">IPwsObject_V1</a>
        </li>
				<li>
            <a href="../Pws.Clients.RestLibrary/IPwsObjectSerialisable_V1`1.htm">IPwsObjectSerialisable_V1&lt;T&gt;</a>
        </li>
				<li>
            <a href="../Pws.Clients.RestLibrary/Link_V1.htm">Link_V1</a>
        </li>
				<li>
            <a href="../Pws.Clients.RestLibrary/MediaTypes.htm" class="current">MediaTypes</a>
        </li>
				<li>
            <a href="../Pws.Clients.RestLibrary/PwsObjectTypeAttribute.htm">PwsObjectTypeAttribute</a>
        </li>
				<li>
            <a href="../Pws.Clients.RestLibrary/Services_V1.htm">Services_V1</a>
        </li>
		</ul>
	</div>
</nav>
	<article>
    <header>
		<p class="class"><strong>Type</strong> MediaTypes</p>
	</header>
	<section>
		<header>
		<p><strong>Namespace</strong> Pws.Clients.RestLibrary</p>
		</header>
    <div class="sub-header">
			<div id="summary">Helper functions for formatting custom Media Type strings, for use in HTTP headers such as "Accept". 
			</div>
		
		
			<h3 class="section">Methods</h3>
			<ul>
				<li><a href="../Pws.Clients.RestLibrary/MediaTypes.htm#Get">Get</a></li>
				<li><a href="../Pws.Clients.RestLibrary/MediaTypes.htm#Get">Get</a></li>
				<li><a href="../Pws.Clients.RestLibrary/MediaTypes.htm#Get">Get</a></li>
			</ul>
		
		
	</div>
	
	
	<h3 class="section">Public static methods</h3>

	<div id="Get" class="method">
		<h4>
			<span title="System.string">string</span> <strong>Get</strong>(<span title="System.Type">Type</span> pwsObjectType, <span title="System.string">string</span> format)
		</h4>
		<div class="content">Return a fully formed string denoting the Media Type for the given PWS Object type. The string can then be used in the HTTP request "Accept" header.
The format of message exchange may be specified using this overload; if the message transport format is not important, then use the other overload instead. 


			<div class="parameters">
				<h5>Parameters</h5>
				<dl>
						<dt>
							<code><span title="System.Type">Type</span></code> pwsObjectType
						</dt>
						<dd>Type of PWS Object. 
						</dd>
						<dt>
							<code><span title="System.string">string</span></code> format
						</dt>
						<dd>xml or json 
						</dd>
				</dl>
			</div>

			<div class="return">

				<h5>Returns</h5>
				<dl>
					<dt>
						<code><span title="System.string">string</span></code>
					</dt>
					<dd>A Media Type string, including any nested types if applicable. E.g. application/x.pws.customers.order-v1'x.pws.customers.orderline-v1'+xml 
					</dd>
				</dl>
			</div>

		</div>
	</div>
	<div id="Get" class="method">
		<h4>
			<span title="System.string">string</span> <strong>Get</strong>(<span title="System.Type">Type</span> pwsObjectType, <a href="../Pws.Clients.RestLibrary/PwsObjectTypeAttribute.htm">PwsObjectTypeAttribute</a> attribute, <span title="System.string">string</span> format)
		</h4>
		<div class="content">Return a fully formed string denoting the Media Type for the PWS Object represented by the PwsObjectTypeAttribute. The string can then be used in the HTTP request "Accept" header. 


			<div class="parameters">
				<h5>Parameters</h5>
				<dl>
						<dt>
							<code><span title="System.Type">Type</span></code> pwsObjectType
						</dt>
						<dd>Type of PWS Object. 
						</dd>
						<dt>
							<code><a href="../Pws.Clients.RestLibrary/PwsObjectTypeAttribute.htm">PwsObjectTypeAttribute</a></code> attribute
						</dt>
						<dd>Attribute decorating a PWS Object type definition. 
						</dd>
						<dt>
							<code><span title="System.string">string</span></code> format
						</dt>
						<dd>xml or json 
						</dd>
				</dl>
			</div>

			<div class="return">

				<h5>Returns</h5>
				<dl>
					<dt>
						<code><span title="System.string">string</span></code>
					</dt>
					<dd>A Media Type string. Nested types are not supported by this overload. 
					</dd>
				</dl>
			</div>

		</div>
	</div>
	<div id="Get" class="method">
		<h4>
			<span title="System.string">string</span> <strong>Get</strong>(<span title="System.Type">Type</span> pwsObjectType)
		</h4>
		<div class="content">Return a fully formed string denoting the Media Type for the given PWS Object type. The string can then be used in the HTTP request "Accept" header. 


			<div class="parameters">
				<h5>Parameters</h5>
				<dl>
						<dt>
							<code><span title="System.Type">Type</span></code> pwsObjectType
						</dt>
						<dd>Type of PWS Object. 
						</dd>
				</dl>
			</div>

			<div class="return">

				<h5>Returns</h5>
				<dl>
					<dt>
						<code><span title="System.string">string</span></code>
					</dt>
					<dd>A Media Type string, including any nested types if applicable. E.g. application/x.pws.customers.order-v1(x.pws.customers.orderline-v1)+xml 
					</dd>
				</dl>
			</div>

		</div>
	</div>
	
	</section>
	</article><footer>
	<span id="version">Built from v1.0.0.0 of Pws.Clients.RestLibrary</span>
	<span id="docu-link">
		Generated by <a href="http://docu.jagregory.com">docu</a>
	</span>
</footer>
  </body>
</html>